{% extends 'channel/base.html' %}
{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
    <script type="application/javascript">
        var xmlHttp;
        if (window.xmlhttpRequest) {
            xmlHttp = new XMLHttpRequest()
            //发送请求，send or open函数
            xmlHttp.open('GEt', 'index.html', true);
            xmlHttp.send('string');

            xmlHttp.onreadystatechange = function () {
                if (xmlHttp.readyState == '4' && xmlHttp.status == 200) {
                    document.getElementById('col-6').innerHTML = xmlHttp.responseText;
                }
            }
        } else {
            //兼容IE5 IE6
            xmlHttp = new ActiveXObject('Microsoft.XMLHTTP')
        }
    </script>
</head>
<body>

<div class="container">
    {% block content %}
        <div style="position:absolute; width:100%; height:100%; z-index:-1; left:0; top:0;">
            <img src="{% static 'bootstrap/img/slide_3.jpg' %}" height="100%" width="100%" style="left:0; top:0;">
        </div>
        <div class="row">

            <div class="col-lg-5">

            </div>
            <div class="col-lg-2">
                <form class="form-inline" role="form" method="post" action="{% url 'channel:get_base_apk' %}"
                      enctype="multipart/form-data" accept-charset="utf-8">
                    {% csrf_token %}
                    <style>
                        .form-group {
                            margin: 30px 0;
                        }

                        .form-group input {
                            margin: 10px 30px;
                        }
                    </style>
                    <div class="form-group">
                        <label for="name">请输入版本号,例3040</label>
                        <input type="text" class="form-control" name="version" placeholder="请输入版本号">
                    </div>
                    <div class="form-group">
                        <label for="inputfile">请上传母包</label>
                        <input type="file" name="file">

                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-default">提交</button>
                    </div>

                </form>
            </div>
            <div class="col-lg-6" id="col-6">
            </div>
        </div>


    {% endblock content %}

</div>
</body>
</html>